package fr.neyb.wesb.core.data.content.impl.integer;

import fr.neyb.framework.util.CBString;
import fr.neyb.wesb.core.data.content.TextableField;
import fr.neyb.wesb.core.data.content.impl.AbstractField;
import fr.neyb.wesb.core.data.descriptors.field.FieldDescriptor;

public class IntField extends AbstractField implements TextableField{
	
	private int content;

	public IntField(int content,FieldDescriptor descr) {
		super(descr);
		this.content=content;
	}

	@Override
	public CBString toCBString() {
		return new CBString(content);
	}
	
	@Override
	public String toString() {
		return String.valueOf(content);
	}

}
